// 组件全局插件的开发
import PageTools from '@/components/PageTools'
import UploadImg from '@/components/UploadImg'
import ScreenFull from '@/components/ScreenFull'
import Lang from './Lang'

// 方法一：对象写法，内部必须有一个方法 install
const componentPlugin = {
  install(Vue) {
    console.dir(Vue)
    // 导入全局组件PageTools
    Vue.component('PageTools', PageTools)
    Vue.component('Upload-img', UploadImg)
    Vue.component('screen-full', ScreenFull)
    Vue.component('Lang', Lang)
  }
}
// 暴露出
export default componentPlugin
